package com.boot3.service.impl;

import com.boot3.dao.EmpDao;
import com.boot3.entity.Emp;
import com.boot3.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

/**
 * @author wzm
 * @create 2024-02-28 9:30
 * project_name:JavaWeb2401
 * @Description
 */
//EmpService实现类 调用dao完成功能 如果有业务逻辑判断处理 在此进行

@Service
public class EmpServiceImpl001 implements EmpService {
    //上调下 私有化
    @Autowired
   private EmpDao empDao ;



    @Override
    public Emp findById(Integer id) {
//        Emp emp = empDao.selectEmpById(id);
        return empDao.selectEmpById(id);
    }
}
